<?php
require_once __DIR__ . '/../inc/App.php';

$app = new App("Accueil");
$app->addJs("search.js");
$app->header();

$q = filter_input(INPUT_GET, "q", FILTER_SANITIZE_STRING);
?>

<div class="jumbotron">
    <h1>iSearch</h1>
    <p>Le moteur de recherche du futur</p>
    <form id="formulaire">
        <div class="input-group">
            <input id="search" name="recherche" type="text" value="<?php echo $q; ?>" class="form-control">
            <span class="input-group-btn">
                <button class="btn btn-default" type="submit" >Go!</button>
            </span>
        </div>
    </form>
    <div class="progress">
        <div id="progressbar" class="progress-bar progress-bar-danger progress-bar-striped active"  role="progressbar" aria-valuenow="50" aria-valuemin="0" aria-valuemax="100" style="width: 1%">
        </div>
    </div>
    <div id="info">
        Saisissez votre recherche
    </div>
</div>

<div id="results">

</div>

<?php
$app->footer();
